<div class="flexform">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'information-form',
        'enableAjaxValidation' => false
            ));
    ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'info_website'); ?>
        <?php echo $form->dropDownList($model, 'info_website', Subsite::model()->getdomain()); ?>
        <?php echo $form->error($model, 'info_website', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'select_game'); ?>
        <?php echo $form->dropDownList($model, 'select_game', array(' ' => ' ') + ProductCategory::model()->getAllGameSelect()); ?>
        <?php echo $form->error($model, 'select_game', array('class' => 'form-msg-error-advanced')); ?>
    </div>


    <div class="row">
        <?php echo $form->labelEx($model, 'info_sort'); ?>
        <?php echo $form->dropDownList($model, 'info_sort', CHtml::listData(Infosort::model()->findAll(), 'id', 'sort_name')); ?>
        <?php echo $form->error($model, 'info_sort', array('class' => 'form-msg-error-advanced')); ?>
    </div>


    <div class="row">
        <?php echo $form->labelEx($model, 'info_title'); ?>
        <?php echo $form->textField($model, 'info_title', array('size' => 40, 'maxlength' => 255)); ?>
        <?php echo $form->error($model, 'info_title', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'info_form'); ?>
        <?php echo $form->textField($model, 'info_form', array('size' => 40, 'maxlength' => 255)); ?>
        <?php echo $form->error($model, 'info_form', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'info_creator'); ?>
        <?php echo $form->textField($model, 'info_creator', array('size' => 40, 'maxlength' => 255)); ?>
        <?php echo $form->error($model, 'info_creator', array('class' => 'form-msg-error-advanced')); ?>
    </div>


    <div class="row">
        <?php echo $form->labelEx($model, 'info_top'); ?>
        <?php echo $form->dropDownlist($model, 'info_top', array() + $model->top_array); ?>
        <?php echo $form->error($model, 'info_top', array('class' => 'form-msg-error-advanced')); ?>
    </div>


    <div class="row">
        <?php echo $form->labelEx($model, 'info_state'); ?>
        <?php echo $form->dropDownlist($model, 'info_state', array() + $model->state_array); ?>
        <?php echo $form->error($model, 'info_state', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'info_index'); ?>
        <?php echo $form->dropDownlist($model, 'info_index', array() + $model->index_array); ?>
        <?php echo $form->error($model, 'info_index', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'info_keyword'); ?>
        <?php echo $form->textArea($model, 'info_keyword', array('rows' => 2, 'cols' => 60)); ?>
        <?php echo $form->error($model, 'info_keyword', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'info_number'); ?>
        <?php echo $form->textField($model, 'info_number'); ?>
        <?php echo $form->error($model, 'info_number', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'info_about'); ?>
        <?php echo $form->textArea($model, 'info_about', array('rows' => 3, 'cols' => 60)); ?>
        <?php echo $form->error($model, 'info_about', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'info_content'); ?>
        <div style="padding-left: 130px;">
            <?php
            $this->widget('application.extensions.ckeditor.CKEditor', array(
                "model" => $model, # Data-Model
                "attribute" => 'info_content', # Attribute in the Data-Model
                "width" => '90%',
            ));
            ?>
        </div>
        <?php echo $form->error($model, 'info_content', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    <div class="action">
        <?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
    </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>

<script>
    $(function(){
        $('#Information_info_website').combobox();
        $('#Information_select_game').combobox();
    });
</script>